
package com.zsrt.day20170504.ch02;

public class TicketThreadTest {

	public static void main(String[] args) {
		
		TicketThread tk = new TicketThread();
		/*TicketThread tk1 = new TicketThread();
		TicketThread tk2 = new TicketThread();
		TicketThread tk3 = new TicketThread();
		TicketThread tk4 = new TicketThread();*/
		
		Thread t1=new Thread(tk);
		Thread t2=new Thread(tk);
		Thread t3=new Thread(tk);
		Thread t4=new Thread(tk);
		Thread t5=new Thread(tk);
		
		t1.setName("窗口1");
		t2.setName("窗口2");
		t3.setName("窗口3");
		t4.setName("窗口4");
		t5.setName("窗口5");
		
		t1.start();
		t2.start();
		t3.start();
		t4.start();
		t5.start();
	}
}
